package com.aisino.demogradle.mapper;

import com.aisino.demogradle.entity.Student;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author guochuantao
 * @since 2025/9/9 16:31
 * @version 1.0
 * @description  
*/

@Mapper
public interface StudentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Student record);

    int insertSelective(Student record);

    Student selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);

    int batchInsert(@Param("list") List<Student> list);

    /**
     * 查询所有数据
     * @return List<Student>
     */
    List<Student> selectAll();

}